package com.wpp.lagouservicecode.feign;

import com.wpp.core.email.SendEmailParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author wpp25
 * @date 2021/5/16 21:36
 */
@FeignClient(name = "application-email")
public interface SendEmailFeignClient {

    //调⽤的请求路径
    @RequestMapping(value = "/api/email/sendSimpleEmail",method= RequestMethod.POST)
    public void sendSimpleMail(@RequestBody SendEmailParam sendEmailParam);
}
